package com.mashibing.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mashibing.internalcommon.dto.Car;
import com.mashibing.internalcommon.response.OrderDriverResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 孟瑞达
 * @since 2025-06-18
 */
@Mapper
public interface CarMapper extends BaseMapper<Car> {

    /**
     * 根据车辆id，车辆与司机绑定状态查询司机信息
     * @param carId
     * @param bindState
     * @return
     */
    OrderDriverResponse selectDriverStateByCarId(@Param("carId") String carId,@Param("bindState") int bindState);
}
